package com.andy.java;

import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.Task;
import org.gradle.api.tasks.TaskContainer;

/**
 * @time: 2021/7/27 七月 17:34
 * @author: xiangdan/xiangdan@dtxytech.com
 */
public class MyJavaPlugin02 implements Plugin<Project> {
    @Override
    public void apply(Project project) {
        TaskContainer tasks = project.getTasks();
        Task task = tasks.create("MyJavaPlugin02");
        task.doLast(action->{
            System.out.println("这是我的第2个java 插件");
        });
    }
}